import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AuthGuardGuard } from './guards/auth-guard.guard';
import { BaseFormComponent } from './modules/dynamic/base-form.component';
import { LoginComponent } from './modules/login/login.component';
import { MeComponent } from './modules/me/me.component';

const routes: Routes = [
  { path: 'home', component: MeComponent, data: { breadcrumb: '首页' } },
  { path: 'login', component: LoginComponent },
  { path: '**', redirectTo: '/home' }
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
